import store from 'store';
export default {
    paging:{
        url:'certificate/getCertificateList.do',
        pCount: 20,
        ajax:{
            type:'POST'
        }
    },
    dataField:'authList',
    fields:true,
    columns:[{
        width:'10%',
        title:'状态',
        field:'state',
        nowrap:false,
        filter(val,field){
            field =field +'appd1';
            return store(field)[val]
        }
    },{
        width:'16%',
        title:'公司名称',
        field:'enterpriseName',
        nowrap:false,
        className:'f-toeup',
        template:true,
        filter:null,
        content:`
        <a href="javascript:void(0);" class="f-cblue j-detail"><%$value.enterpriseName%></a>
        `
    },{
        width:'8%',
        title:'应用数',
        field:'appNum',
        nowrap:false
    },{
        width:'10%',
        title:'营业执照',
        field:'licenseId',
        className:'img',
        template:true,
        filter:null,
        content:`
        <img src="<%$value.licenseId%>" width="44" height="60" class="e-border">
        `
    },{
        width:'10%',
        title:'开发者',
        field:'contactName',
        nowrap:false
    },{
        width:'12%',
        title:'邮箱',
        field:'mail',
        nowrap:false
    },{
        width:'16%',
        title:'场景描述',
        field:'sceneDesc',
        className:'f-toeup',
        nowrap:false
    },{
        width:'10%',
        title:'提交时间',
        field:'submitTime',
        nowrap:false
    },{
        title:'操作',
        nowrap:false,
        filter:null,
        template:true,
        content:`
       <%if $value.state=='2'%>
       <a href="javascript:void(0);" class="j-check f-cblue" data-type="0">审核</a>
       <%/if%>
        `
    }]
}    